package pl.lodz.p.browarex.mvc;

import java.util.ArrayList;
import java.util.List;

import pl.lodz.p.browarex.model.enums.PackageType;
import pl.lodz.p.browarex.model.enums.State;

public class EnumForCombo {

	public static final List<EnumFilterModel> getStates() {
		List<EnumFilterModel> states;
		states = new ArrayList<EnumFilterModel>();
		for (State s : State.values()) {
			states.add(new EnumFilterModel(s, s.getValue()));
		}
		return states;
	}

	public static final List<EnumFilterModel> getPackageTypes() {
		List<EnumFilterModel> packageTypes;
		packageTypes = new ArrayList<EnumFilterModel>();
		for (PackageType packageType : PackageType.values()) {
			packageTypes.add(new EnumFilterModel(packageType, packageType
					.getValue()));
		}
		return packageTypes;
	}
}
